package na.learn.java.corepatterns.command;

public class AdditionCommand implements Command {

	Resource resource;

	public AdditionCommand(Resource res) {
		resource = res;
	}

	public void execute() {
		if (resource instanceof AdditableResource)
			((AdditableResource) resource).doAddition();

	}

}
